package com.shievy.anweb

import com.google.auto.service.AutoService
import com.google.gson.Gson
import com.shievy.anweb.base.uitl.LogUtil
import com.shievy.anweb.webview.api.WebTelecomApiService
import com.shievy.anweb.webview.entry.JsParams
import com.shievy.anweb.webview.entry.WebHandler
import com.shievy.anweb.webview.main.WebTelecomService

@AutoService(WebTelecomApiService::class)
class MyTest : WebTelecomApiService {
    override fun telecomID(): String = "toast"
    override fun doNext(jsParams: JsParams, callBack: WebHandler?) {
        LogUtil.i("doNext ", "jsParams = $jsParams")
        callBack?.commit(Gson().toJson(mutableMapOf<String, String>().apply {
            put("1", "dsd")
            put("1", "dsd")
            put("1", "dsd")
        }))
    }

}